how to extract text from string with textafter